﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HolisticWare.VoIP.Getafisk.DLL_02BL_netfx35.any_any_any
{
	public
		class 
		Trunks
		:
		System.ComponentModel.BindingList<Trunk>
	{

		# region ---- Property Trunks TrunksDataBindingObject --------------------
		private Trunks _TrunksDataBindingObject;

		public Trunks TrunksDataBindingObject
		{
			get { return _TrunksDataBindingObject; }
			set
			{
				if (value != _TrunksDataBindingObject)
				{
					// lock(_TrunksDataBindingObject) // MultiThread safe
					{
						_TrunksDataBindingObject = value;
						if (null != TrunksDataBindingObjectChanged)
							TrunksDataBindingObjectChanged(this, new EventArgs());
					}
				}
			}
		}

		public event EventHandler TrunksDataBindingObjectChanged;
		# endregion ---- Trunks Property.TrunksDataBindingObject --------------------

		public
			Trunks
			Select
			(
			)
		{
			
			return _TrunksDataBindingObject;
		}

		public
			Trunks
			Insert
			(
			  Trunk t
			)
		{
			this._TrunksDataBindingObject.Add(t);

			return _TrunksDataBindingObject;
		}

		public
			Trunks
			Update
			(
			  Trunk t
			)
		{

			return _TrunksDataBindingObject;
		}

		public
			Trunks
			Delete
			(
			  Trunk t
			)
		{
			this._TrunksDataBindingObject.Remove(t);

			return _TrunksDataBindingObject;
		}
	}
}
